package com.enba.boot.web.config;

import com.enba.boot.web.interceptor.SecurityContextInterceptorCallback;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class CallbackConfig {

  @ConditionalOnMissingBean(SecurityContextInterceptorCallback.class)
  @Bean
  public SecurityContextInterceptorCallback defaultCallback() {
    // 默认回调逻辑
    return (request, response, handler) -> true;
  }
}
